package com.snake.springboot.custom.dao.mybatis.mappers.goods;

import com.snake.springboot.custom.dao.mybatis.entity.goods.CustStryGoodsDO;
import com.snake.springboot.custom.dao.mybatis.entity.goods.CustStryGoodsDetailDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustStryGoodsMapper {
    int deleteByPrimaryKey(String strategyGoodsId);

    int insertSelective(CustStryGoodsDO record);

    List<CustStryGoodsDO> queryList(CustStryGoodsDO queryDO);

    List<CustStryGoodsDetailDO> queryDetailById(String billId);

    CustStryGoodsDO queryById(String custStryGoodsId);

    int insertBatch(List<CustStryGoodsDO> goodsDOS);

    Integer queryBuyCount(@Param("strategyGoodsId") String strategyGoodsId,@Param("customId") String customId);
}